/**
 *   Copyright (C) 2012  Development Solutions (DS) Software
 *
 *   This program is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 *   The following additional terms will apply to the software provided with
 *   this file.
 *      1. Preserve the original authors’ name.
 *      2. Documenting all contributions and specify the contributor's name,
 *         the date of the contribution and some email to future contact.
 * 
 */
package org.dss.gil.beans;


/**  
 *  @author  Fernando Gil <lobho.gil@gmail.com>
 *  @since   September 2012
 *  @version 1.0
 */
public class RowBean {

    private int    number;
    private String label;
    private String block;
    private String params;
    private String comments;

    public RowBean(int blockNum,String blockLabel, String blockName, String blockParams, String blockComments) {
        number = blockNum;
        label  = blockLabel;
        block  = blockName;
        params = blockParams;
        comments = blockComments;
    }
    
    public RowBean(int blockNum,Object blockLabel, Object blockName, Object blockParams, Object comments) {
        this(blockNum,blockLabel.toString().trim(),blockName.toString().trim(),blockParams.toString().trim(),comments.toString().trim());
    }
    
    public String getBlockLabel() {
        return label;
    }

    public void setBlockLabel(String blockLabel) {
        label = blockLabel.trim();
    }

    public String getBlockName() {
        return block.toUpperCase();
    }

    public void setBlockName(String blockName) {
        block = blockName.trim();
    }

    public int getBlockNumber() {
        return number;
    }

    public void setBlockNumber(int blockNumber) {
        number = blockNumber;
    }

    public String getBlockParams() {
        return params;
    }

    public void setBlockParams(String blockParams) {
        params = blockParams.trim();
    }
    
    public String getBlockComments() {
        return comments;
    }

    public void setBlockComments(String blockComments) {
        comments = blockComments.trim();
    }
    
}
